package cn.uniquesoft.service.impl;

import org.springframework.stereotype.Service;

import cn.uniquesoft.mapper.CompanyMapper;
import cn.uniquesoft.service.ICompanyService;
import cn.uniquesoft.service.base.BaseServiceImpl;
import cn.uniquesoft.vo.CompanyVO;

import java.util.List;

@Service
@SuppressWarnings("unused")
public class CompanyServiceImpl extends BaseServiceImpl<CompanyVO> implements ICompanyService {
	
	private CompanyMapper companyMapper;
	public CompanyServiceImpl(CompanyMapper companyMapper) {
		super();
		this.baseMapper = companyMapper;
		this.companyMapper = companyMapper;
	}

	/**
	 * 根据企业简称查找
	 *
	 * @param ishort
	 * @return
	 */
	@Override
	public CompanyVO findOneByCshort(String ishort) {
		return companyMapper.findOneByCshort(ishort);
	}

	@Override
	public List<CompanyVO> findItemsGroupByItype() {
		return this.companyMapper.findItemsGroupByItype();
	}

	@Override
	public List<CompanyVO> getCompanyListByItype(CompanyVO item) {
		return this.companyMapper.getCompanyListByItype(item);
	}
}
